<template>
  <!-- html --> 
  <Person ref="ren"/>
  <button @click="showRen">显示</button>
</template>

<script lang="ts" setup name="App">
import { ref } from 'vue';
import Person from './components/Person.vue'
let ren = ref()
function showRen() {
  console.log(ren.value)
}
// JS或TS
</script>